var app = getApp()
Page({
  data: {
    listData: [
    ],
    zong:0
  },
  onLoad: function () {
    var that=this;
    var url = app.globalData.url;
    wx.request({
      url: `${url}myCount`,
      header: {
        'content-type': 'application/json'
      },
      success: function (data) {
         
          var people=null;
           for (var i = 0; i < data.data.length; i++) {
             people += Number(data.data[i].num)
           }
           that.setData({
               listData:data.data,
               zong:people
           })
         
   
      }
    })
  }
})
